package com.gx.smart.building.ui.swap.fragment

import android.view.ViewGroup
import com.gx.smart.base.BaseMVVMFragmentV2
import com.gx.smart.building.R
import com.gx.smart.building.databinding.FragmentSwapResultBinding
import com.gx.smart.building.ui.swap.viewmodel.SwapResultViewModel

class SwapResultFragment : BaseMVVMFragmentV2<SwapResultViewModel>() {
    private lateinit var viewBinding: FragmentSwapResultBinding
    override fun onBindLayout(): Int = R.layout.fragment_swap_result

    override fun getToolbarTitle(): String = "交接完成"

    override fun onBindViewModel(): Class<SwapResultViewModel> = SwapResultViewModel::class.java
    override fun initContentView(root: ViewGroup) {
        viewBinding = FragmentSwapResultBinding.inflate(layoutInflater, root, true)
        viewBinding.back.setOnClickListener {
            back()
        }
    }

    private fun back() {
        requireActivity().finish()
    }

}